//
//  CalendarDay.h
//  planner
//
//  Created by 함동균 on 2014. 3. 25..
//  Copyright (c) 2014년 idea. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import "CalendarMonth.h"

@class CalendarEvent, CalendarMonth;

@interface CalendarDay : CalendarMonth

@property (nonatomic) NSTimeInterval date;
@property (nonatomic) int16_t day;
@property (nonatomic) int16_t week;
@property (nonatomic) BOOL isSelected;
@property (nonatomic) BOOL isToday;
@property (nonatomic, retain) NSOrderedSet *events;
@property (nonatomic, retain) NSSet *yearmonth;
@end

@interface CalendarDay (CoreDataGeneratedAccessors)

- (void)insertObject:(CalendarEvent *)value inEventsAtIndex:(NSUInteger)idx;
- (void)removeObjectFromEventsAtIndex:(NSUInteger)idx;
- (void)insertEvents:(NSArray *)value atIndexes:(NSIndexSet *)indexes;
- (void)removeEventsAtIndexes:(NSIndexSet *)indexes;
- (void)replaceObjectInEventsAtIndex:(NSUInteger)idx withObject:(CalendarEvent *)value;
- (void)replaceEventsAtIndexes:(NSIndexSet *)indexes withEvents:(NSArray *)values;
- (void)addEventsObject:(CalendarEvent *)value;
- (void)removeEventsObject:(CalendarEvent *)value;
- (void)addEvents:(NSOrderedSet *)values;
- (void)removeEvents:(NSOrderedSet *)values;
- (void)addYearmonthObject:(CalendarMonth *)value;
- (void)removeYearmonthObject:(CalendarMonth *)value;
- (void)addYearmonth:(NSSet *)values;
- (void)removeYearmonth:(NSSet *)values;

@end
